package com.mc.music_web.services.impl;

import com.mc.music_web.entity.SongType;
import com.mc.music_web.mapper.SongTypeMapper;
import com.mc.music_web.services.SongTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class SongTypeServiceImpl implements SongTypeService {
    @Autowired
     private SongTypeMapper songTypeMapper;
    public List<SongType> sellectSongType() {
        return songTypeMapper.sellectSongType();
    }

    public int delterSongType(Integer songTypeId) {
        return songTypeMapper.delterSongType(songTypeId);
    }

    public int insertSongType(SongType songType) {
        return songTypeMapper.insertSongType(songType);
    }
}
